package com.ccx.demo.service.Impl;

import com.ccx.demo.dao.RoleDao;
import com.ccx.demo.pojo.SysRole;
import com.ccx.demo.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysRoleServiceImpl implements RoleService {

    @Autowired
    private RoleDao roleDao;

    @Override
    public boolean UpRoleCode(Integer code,Integer userId) {
        return roleDao.UpRoleCode(code,userId);
    }

    @Override
    public SysRole SelectByCode(Integer code) {
        return roleDao.SelectByCode(code);
    }
}
